home *** CD-ROM | disk | FTP | other *** search
- Path: colossus.holonet.net!vdim!rick.crone
- From: rick.crone@vdim.com (Rick Crone)
- Newsgroups: comp.lang.c
- Subject: Re: Loading a structure from
- Date: Fri, 12 Jan 1996 01:37:55 GMT
- Message-ID: <9601120655253816@vdim.com>
- Organization: The Virtual Dimension | Jackson, TN USA
- Distribution: world
- References: <4cfg1d$5n9@vector.wantree.com.au>
-
- Yea, hang a loop to get all your records. You didn't descrip the file,
- but if its a simple text file with fixed lenght records and a /n at the
- end of each record - read a line load an element of your array - loop -
- if it's not the end of the file. Be sure you array can hold the data
- from the file - error trap the program if you have more records than
- array space.
-
- Good Luck!
- Rick
-